<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib  prefix="html" uri="http://struts.apache.org/tags-html-el"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Lista File</title>
<link href="css/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/style.css">

</head>
<body>
<jsp:include page="/header.jsp"></jsp:include>

<div id="sidebar">

	<jsp:include page="menuFile.jsp"></jsp:include>
	<ul>
		<li><html:link href="preparaGestioneFiles.do">Gestione File</html:link></li>
	</ul>
	
</div>
<div id="content">
	<h3>Lista File</h3>
	${message }
	<c:if test="${listaDocumento!=null }">
		<display:table name="listaDocumento" uid="table" class="tablesorter" requestURI="PrepareListaDocumentoAction.do">
			<display:column property="nomeDocumento" title="Nome File" sortable="true"></display:column>
			<display:column property="dataUpload" title="Data" sortable="true"></display:column>
			<display:column property="utenteCreatore.profilo" title="Autore" sortable="true" > </display:column>
			<display:column title="Tags" sortable="true" >
				-
				<c:forEach var="tag" items="${table.listaTag }" >
  					 ${tag.codTag } - 
  				</c:forEach>
			</display:column>
			<display:column title="Classificazioni" sortable="true">
				<c:forEach var="classificazione" items="${table.listaClassificazioni }" >
  					- ${classificazione.codClassificazione }  
  				</c:forEach>
  				-
			</display:column>
			<display:column title="Azione" href="ConfermaDownloadDocumentoAction.do" paramId="idDocumento" paramProperty="idDocumento"> <img class="azioni" alt="download" title="download file" src="css/images/disk.png" /> </display:column>
		</display:table>
		<br>
	</c:if>
</div>

<jsp:include page="/footer.jsp"></jsp:include>
</body>
</html>